/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.mer.entity;

import org.hibernate.validator.constraints.Length;

import com.kaaction.common.persistence.DataEntity;

/**
 * 尺码Entity
 * @author huanghaiming
 * @version 2017-05-21
 */
public class Size extends DataEntity<Size> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// name
	private Integer sort;		// sort
	
	public Size() {
		super();
	}

	public Size(String id){
		super(id);
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Length(min=0, max=255, message="name长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}